package controller

import (
	"music/util/request"
)

//获取排行榜详细

func Top(query map[string]interface{}) map[string]interface{} {
	data := map[string]interface{}{}
	if val, ok := query["id"]; ok && val != "" {
		data["id"] = val
	} else {
		data["id"] = 19723756
	}
	data["n"] = 100000
	data["s"] = 8

	result := request.GetRequest("https://music.163.com/api/v6/playlist/detail", data)
	return result
}

//获取排行榜分类
func TopCat(query map[string]interface{}) map[string]interface{} {
	data := map[string]interface{}{}

	result := request.GetRequest("https://music.163.com/api/toplist", data)
	return result
}
